package Handler

import (
	"watch_script_state/dto/plugins_handler_dto"
	"watch_script_state/piugins/mqtt"
)

var pluginsArray = []plugins_handler_dto.HandlerDTO{
	mqtt.Mqtt(),
}

func StartPlugins() {
	// 一个插件开一个携程去处理
	for _, item := range pluginsArray {
		go func() {
			println("正在启动", item.Name)
			item.Func()
		}()
	}
}
